#ifndef _APP_PARAM_STORE_H_
#define _APP_PARAM_STORE_H_

typedef struct store_msg_s{
    uint32_t magic1;
    uint8_t  type;
    uint8_t  lens;              //sizeof(store_msg_t)
    uint32_t program_cnt;
    uint32_t port;
    uint32_t time_remain;
    uint16_t crc;
    uint32_t magic2;
}store_msg_t;

void* store_msg_init(void);

void store_msg_write(void* msg);

void store_msg_generate(store_msg_t* msg, uint32_t port, uint32_t time_remain);


#endif
